import os
import time
import random
from DrissionPage import ChromiumPage
import csv
import pandas as pd
import requests
import re

headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
    }

home_page = 'https://www.taobao.com'

page = ChromiumPage()
page.get(home_page)
input('请输入任意键继续')

for i in range(1, 3):
    page.run_js('window.scrollBy(0, 2*window.innerHeight);')  # 向下滚动两个视窗高度
    time.sleep(random.randint(1,2))  # 等待间隔时间，单位是秒

input('请输入任意键继续')